﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EFCore3.Entity.树形结构
{
    public class Menu
    {
        public int Id { get; set; }

        public int? ParentId { get; set; }

        public Menu? Parent { get; set; }

        public string Name { get; set; }

        public List<Menu> Childs { get; set; }=new List<Menu>();
    }
}
